package com.scott.prototype.simple;

public class CloneTest {

    public static void main(String[] args) {
        CloneCreatePrototype cp = new CloneCreatePrototype();
        cp.setAge(88);
        try {
            CloneCreatePrototype copy = (CloneCreatePrototype)cp.clone();
            System.out.println(copy.getAge());
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
    }
}
